import axios from '~/axios'

// 添加指标变更记录
export function addIndexChangeRecordApi(data) {
    return axios.post('/basic/lindi/indexChangeRecord/addIndexChangeRecord', data)
}

// 删除指标变更记录
export function deleteIndexChangeRecordByIndexChangeRecordIdApi(indexChangeRecordId) {
    return axios({
        method: 'DELETE',
        url: '/basic/lindi/indexChangeRecord/deleteIndexChangeRecordByIndexChangeRecordId',
        params: {
            indexChangeRecordId: indexChangeRecordId
        }
    })
}

// 修改指标变更记录
export function updateIndexChangeRecordByIndexChangeRecordIdApi(data) {
    return axios.put('/basic/lindi/indexChangeRecord/updateIndexChangeRecordByIndexChangeRecordId', data)
}

// 分页查询指标变更记录列表
export function getPageIndexChangeRecordListApi(params) {
    return axios({
        method: 'GET',
        url: '/basic/lindi/indexChangeRecord/getPageIndexChangeRecordList',
        params: params
    })
}

// 根据ID查询指标变更记录详情
export function getIndexChangeRecordByIndexChangeRecordIdApi(indexChangeRecordId) {
    return axios.get(`/basic/lindi/indexChangeRecord/getIndexChangeRecordByIndexChangeRecordId/${indexChangeRecordId}`)
}